package com.lys.emsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lys.emsystem.entity.Classroom;
import com.lys.emsystem.vo.ClassroomVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClassroomMapper extends BaseMapper<Classroom> {
    IPage<Classroom> search(Page<Classroom> page, @Param("classroomVo") ClassroomVo classroomVo);

    int delList(@Param("ids") int[] ids);

    List<Classroom> searchClassByMajorIds(@Param("id") int id);
}
